WOGenericContainer


Synopsis

WOGenericContainer{ elementName = aConstantString; ...};

Description

WOGenericContainer provides a way for WebObjects to accommodate custom HTML container elements. (See the related element WOGenericElement for information about the support of empty elements.) Since the HTML language is evolving rapidly, it's convenient to have a way to dynamically generate elements which are not explicitly supported by WebObjects.

elementName
Name of the HTML element to generate.
This approach works for many elements, but has one limitation. Some HTML elements have an href attribute that lets them return a URL. In WebObjects, the corresponding dynamic element generally has two mutually exclusive attributes, href and action, which make use of the HTML element's href attribute. (See WOHyperlink for an element that can have either an href or an action attribute.) The dynamic element's href attribute simply returns a URL, but action invokes a WebObjects method, which returns a URL. This overloading of the HTML href attribute is not supported by WOGenericContainer. If your custom element requires this functionality, you will have to create your own subclass of WODynamicElement.

Examples